package com.ww.basic.oop

object UseCar {
  def main(args: Array[String]): Unit = {
    val car = new Car(2015)
    println(s"Car made in year ${car.year}")
    println(s"Miles driven ${car.miles}")
    println("Drive for 10 miles")
    car.drive(10)
    println(s"Miles driven ${car.miles}")
  }
}
